<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>my-product</title>
  <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
  <link rel="icon" href="./favicon.ico">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
  <link rel="stylesheet" href="./lib/mui/css/mui.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/product.css">
</head>

<body>

  <div class="lt_container">
    <!-- 头部 -->
    <div class="lt_header">
      <div class="icon_left">
        <a href="javascript:history.back();" class="mui-icon mui-icon-back"></a>
      </div>
      <h4>商品详情</h4>
      <div class="icon_right ">
        <a href="javascript:location.reload();" class="mui-icon mui-icon-reload "></a>
      </div>
    </div>
    <!-- 内容 -->
    <div class="lt_main ">
      <div class="mui-scroll-wrapper">
        <div class="mui-scroll">
         

        </div>
      </div>
    </div>
    <!-- 底部 -->
    <div class="lt_footer mui-clearfix">
      <button class="mui-btn mui-btn-link">去购物车</button>
      <div class="mui-pull-right" style="padding-right: 10px;">
        <button class="mui-btn mui-btn-danger add_cart">加入购物车</button>
        <button class="mui-btn mui-btn-warning buy_now">立即购买</button>
      </div>
    </div>
  </div>

  <script type="text/template" id="tmp">
    <!-- 轮播图 -->
    <div class="banner">
        <div class="mui-slider">
            <div class="mui-slider-group">
              <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[pic.length-1].picAddr}}" /></a></div>
              {{each pic v i}}
              <div class="mui-slider-item"><a href="#"><img src="{{v.picAddr}}" /></a></div>
              {{/each}}
              <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[0].picAddr}}" /></a></div>
            </div>
            <!-- 小圆点 -->
               <div class="mui-slider-indicator">
               {{each pic v i}}
               <div class="mui-indicator {{i===0?'mui-active':''}}"></div>
               {{/each}}
               </div>
          </div>
      </div>
      <!-- 商品名 -->
      <p class="pro_name">
        {{proName}}
      </p>
      <!-- 价格 -->
      <div class="pro_price">
        价格:
        <span>￥{{oldPrice}}</span>
        <span>￥{{price}}</span>
      </div>
      <!-- 尺码 -->
      <div class="pro_size">
        尺码:
        <% var size = size.split("-");
            for(var i= +size[0];i< +size[1];i++){ %>
         <span class= "size" ><%= i %></span> 
         <% } %>
      </div>
      <!-- 数量 -->
      <div class="pro_num">
        数量:
        <div class="mui-numbox" data-numbox-step='10' data-numbox-min='0' data-numbox-max='100'>
          <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
          <input class="mui-numbox-input" type="number" value = "1" />
          <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
        </div>
        <span>剩余数量:{{num}}双</span>
      </div>
      <!-- 详情 -->
      <div class="pro_detail">
        详情:{{proDesc}}
      </div>
  </script>


  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/product.js"></script>
  <script>



  </script>
</body>

</html>